package com.example.compreshensiveshop.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ProductVO {
    private Long productId;           // 商品id
    private Long sellerId;            // 商家id
    private String productName;       // 商品名称
    private BigDecimal productPrice;  // 商品价格 - 修正字段名
    private Integer productStock;     // 库存 - 修正字段名
    private Integer productSale;      // 销量
    private String productDescription; // 商品描述
    private String productImage;      // 商品图片
    private Long productViewCount;    // 商品浏览量
    private Long categoryId;          // 分类ID
    private Integer status;
    private String categoryName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp  createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;
}